package com.example.demo.permission.msg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.example.demo.permission.msg.pojo.MsgContent;
import com.example.demo.permission.msg.pojo.SysMsg;
import com.example.demo.permission.user.pojo.LtUser;

@Mapper
public interface SysMsgMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(SysMsg record);

	int insertSelective(SysMsg record);

	SysMsg selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(SysMsg record);

	int updateByPrimaryKey(SysMsg record);

	int sendMsg(MsgContent msg);

	int addMsg2AllHr(@Param("hrs") List<LtUser> hrs, @Param("mid") Long mid);

	List<SysMsg> getSysMsg(@Param("start") int start, @Param("size") Integer size, @Param("hrid") Long hrid);

	int markRead(@Param("flag") Long flag, @Param("hrid") Long hrid);
}